package leetcode.每日一题.贪心;

import org.junit.Test;

import java.util.Comparator;
import java.util.PriorityQueue;

/**
 * @author ：zsy
 * @date ：Created 2022/12/22 4:30 PM
 * @description：
 */
public class 移除石子的最大得分 {

    @Test
    public void test() {

    }

    class Solution {
        public int maximumScore(int a, int b, int c) {
            int sum = a + b + c;
            int maxVal = Math.max(Math.max(a, b), c);
            return Math.min(sum - maxVal, sum / 2);
        }
    }
}
